<!DOCTYPE html>
<html>

<head>
    <title>{$user_nickname} - 修改资料</title>
    <meta name="keywords" content="" />
    <meta name="description" content="">
    <include file="public@head" />
</head>

<body class="body-white" id="top">
    <include file="public@nav" />
    <include file="public@usernav" />
    <div class="container py-3">
        <h6 class="text-right"><i class="fa fa-list-alt"></i> 修改资料</h6>
        <hr>
        <div class="">
            <form class="js-ajax-form" action="{:url('user/profile/editPost')}" method="post">
                <div class="form-group">
                    <label for="input-user_nickname">昵称</label>
                    <input type="text" class="form-control" id="input-user_nickname" placeholder="昵称" name="user_nickname" value="{$user_nickname}">
                </div>
                <div class="form-group">
                    <label for="input-sex">性别</label>
                    <php>
                        $sexs=array("0"=>"保密","1"=>"男","2"=>"女");
                    </php>
                    <select class="form-control" id="input-sex" name="sex">
                        <foreach name="sexs" item="vo">
                            <php>$sexselected=$key==$sex?"selected":"";</php>
                            <option value="{$key}" {$sexselected}>{$vo}</option>
                        </foreach>
                    </select>
                </div>
                <div class="form-group">
                    <label for="input-birthday">生日</label>
                    <input class="form-control js-bootstrap-date" type="text" id="input-birthday" placeholder="2013-01-04" name="birthday" value="{:date('Y-m-d',$birthday)}">
                </div>
                <div class="form-group">
                    <label for="input-user_url">个人网址</label>
                    <input class="form-control" type="text" id="input-user_url" placeholder="http://mlkz.top" name="user_url" value="{$user_url}">
                </div>
                <div class="form-group">
                    <label for="input-signature">个性签名</label>
                    <textarea class="form-control" id="input-signature" placeholder="个性签名" name="signature">{$signature}</textarea>
                </div>
                <div class="form-group">
                    <button type="submit" class="btn btn-primary js-ajax-submit">保存</button>
                </div>
            </form>
        </div>
    </div>
    <!-- /container -->
    <include file="public@footer" />
    <include file="public@scripts" />
</body>

</html>